/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package airacrobats.sound;

import airacrobats.io.data.SoundData;

/**
 * A radio sound is a sound, with gain above the ranges. It also plays one time and stops.
 */
public class RadioSound extends Sound
{
    /**
     * Radio gain.
     */
    private static final float RADIO_GAIN = 30.0f;

    /**
     * Time of the radio sound.
     */
    private long time;

    /**
     * @param soundData The sound data.
     * @param time The time to play the sound, in milliseconds.
     */
    public RadioSound(SoundData soundData, long time)
    {
        super(soundData, true, RADIO_GAIN);
        this.time = time;
    }

    /**
     * @return The time.
     */
    public long getTime()
    {
        return time;
    }
}
